There are three types of quotes in the shell: single quotes, double quotes, and anti-quotes. The single quotation mark ' character nonalphanumeric, enclosed by single quotes, appears as a normal character. When special characters are enclosed in
PHP single quotes and double quotes can modify string data. if the modified string contains a variable (for example, $ name), the biggest difference is that double quotes replace the variable value, the single quotation mark will output it as a
Magic Quotes is used to filter forms submitted over illegal information processing, if (GET_MAGIC_QUOTES_GPC ()) echo "Magic quotes is enabled"; else echo "Magic quotes is D Isabled ";
PHP-magic QuotesBefore to PHP 6th there is a feature called
-Magic quotes of PHPA function called magic quotes was previously created in PHP 6 to help protect novice programmers from writing bad table processing code. Magic quotes automatically avoids dangerous form data and may be used for SQL injection
Requirements:SSH remotely modifies the file, the variable is taken from the file, and the single and double quotes in the shell script that are inserted into the remote server's file are the same as the delimiter of the string, not the delimiter of
I have always thought that the use of single quotes and double quotes in PHP is not much different, but today I am doing an example to find that there are actually some differences.
CodeI:
$ Tempfilename=Tempnam('D:/tmp/', 'Data -');Echo'Temporary
One, Magic quotes 1. MAGIC_QUOTES_GPC variableWhat is Magic QuotesWarningThis feature has been deprecated since PHP 5.3.0 and will be removed from PHP 5.4.0.When turned on, all ' (single quotes), "(double quotes), \ (backslash), and NULL characters
One, single and double-quote escape in PHP data stored in the process used more, that is, to store data in the database need to pay attention to escape single, double quotation marks;Say a few PHP functions first:1. addslashes- uses a backslash
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.